package com.nbgroup.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Alias(("uniqueRole"))
public class Role {
    //角色编号
    private Long roleId;
    //角色名称
    private String roleName;
    //权限字符
    private String roleKey;
    //显示顺序
    private String roleSort;
    //数据权限
    private String dataScope;
    //状态
    private String status;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //创建人
    private String createBy;
    //修改人
    private String updateBy;
    //备注
    private String remark;
    //菜单权限
    private List<Integer> menuIds;

    private List<Long> deptIds;

    private Boolean deptCheckStrictly;

    private Boolean menuCheckStrictly;
}
